<!DOCTYPE html>
<html>
<body>
<p style="margin-top: 50px" id="cotnent">Hello World</p>
<br>
<button id="btn">调用应用端的函数(真机才有效果)</button>

<script>
    function htmlTest(msg) {
        document.getElementById('cotnent').innerHTML = msg.toUpperCase()
        return 'Web中的JS返回给应用端的数据'
    }

    document.getElementById('btn').addEventListener('click', function () {
        /*Web端调用应用端的函数*/
        atguigu.fn1('aaa')
        const result = atguigu.fn2('bbb')
        document.getElementById('cotnent').innerHTML = result
    })
</script>
</body>
</html>